#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time    : 2021/4/22 上午11:12
# @Author  : Samge

"""调试scrapy爬虫"""

from scrapy.cmdline import execute
import os
import sys


if __name__ == '__main__':
    """断点调试scrapy爬虫"""
    sys.path.append(os.path.dirname(os.path.abspath(__file__)))
    execute(['scrapy', 'crawl', 'ItkzSpider'])
